QT       += core gui

greaterThan(QT_MAJOR_VERSION, 4): QT += core gui widgets

CONFIG += c++17
DEFINES -= UNICODE

# You can make your code fail to compile if it uses deprecated APIs.
# In order to do so, uncomment the following line.
#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000    # disables all the APIs deprecated before Qt 6.0.0

SOURCES += \
    Clip/ShotCutClip.cpp \
    Effect/ShotCutEffect.cpp \
    Caption/ShotCutCaption.cpp \
    json/JsonSetting.cpp \
    json/JsonData.cpp \
    TimeLine/ShotCutTimeLine.cpp \
    TimeLine/CalcTemplateTimeline.cpp \
    TimeLine/ShotCutElement.cpp \
    ShotCutReaderWriter/ShotCutWriter.cpp \
    Application.cpp \
    ShotCutTool.cpp

HEADERS += \
    Clip/ShotCutClip.h \
    Effect/ShotCutEffect.h \
    Caption/ShotCutCaption.h \
    json/JsonSetting.h \
    json/JsonData.h \
    TimeLine/ShotCutTimeLine.h \
    TimeLine/CalcTemplateTimeline.h \
    TimeLine/ShotCutElement.h \
    ShotCutReaderWriter/ShotCutWriter.h \
    Common.h \
    Application.h

FORMS += \
    UI/ShotCutPreviewVideo.ui

INCLUDEPATH += \
    "D:/ProgramFiles/Msys2/mingw64/include" \
    "D:/ProgramFiles/Msys2/usr/include/libopenshot" \
    "D:/ProgramFiles/Msys2/usr/include/libopenshot-audio"

LIBS  += \
    -L"D:/ProgramFiles/Msys2/usr/bin" -lOpenShot -lOpenShot-Audio -lJsonCpp

# Default rules for deployment.
qnx: target.path = /tmp/$${TARGET}/bin
else: unix:!android: target.path = /opt/$${TARGET}/bin
!isEmpty(target.path): INSTALLS += target

RESOURCES += \
    UI/Icon.qrc
